module top_module ( input [1:0] A, input [1:0] B, output z ); 

    wire		out1;
    wire		out2;
    
    xnor	xnor1	(out1, A[0], B[0]);
    xnor	xnor2	(out2, A[1], B[1]);
    and		and1	(z, out1, out2);
    
endmodule
